package com.csw.demospring.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.fastjson.JSONArray;

@Controller
@RequestMapping("get")
public class GetJsonObj {
	@RequestMapping("json")
	public void getJsonObj(HttpServletRequest request, HttpServletResponse response, String jsonObj) {
		System.out.println("empjson字符串" + jsonObj);
		List list = JSONArray.parseArray(jsonObj);
		for (int i = 0; i < list.size(); i++) {
			System.out.println(list.get(i) + ",");
		}
	}
}
